/**
 * Contact class
 *
 * @author Jose Luis Quintana <joseluis@lbn.pe>
 **/

var Contact = new Class({
    Extends: Main,
    Implements: [Events, Options],
    options: {
    
    },
    
    initialize: function(options){
        this.parent();
        this.setOptions(options);
        this.setEvents();
        this.setDefaults();
    },
    setEvents: function(){
        
    },
    setDefaults: function(){
        var validator = new uValidator('myform',{
            errorContainer: $("errors")
        });
        
        validator.addEvents({
            'success': function(){
                alert("OK !");
            },
            'failure': function(){
            //                alert("Failure !");
            }
        });
    }
});

document.addEvent('domready', function(){
    new Contact().reset();
});